home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of Shareware
/
Best of PC Windows Shareware 1.0 - Wayzata Technology (7111) (1993).iso
/
mac
/
DOS
/
UTILITY
/
ONETIME
/
ONETIME.DOC
next >
Wrap
Text File
|
1992-09-08
|
1KB
|
34 lines
ONETIME.EXE by Randy Laursen
Entering this program into your AUTOEXEC.BAT file will, upon booting,
run a batch file (or other executable file) just one day a week, on the
first boot of the day. The program takes up to four command line para-
meters: 1) the day of the week, 2) the file to be executed (including
its path and extension), and 3) & 4) one or two parameters to be passed to
the executable file. If no parameters are included, it defaults to 'MONDAY'
and 'WEEKLY.BAT' (which must be in the path). This program also expects
'COMMAND.COM' to be in your C:\ directory.
On the designated day, the program checks for the existence of a file
called 'TODAY' in your root directory. If the file exists, it reads the
file and checks the date, executing the batch file if the date is not
current. If the file doesn't exist, it creates it, writing the date in
this file, then executes the batch file. Upon subsequent boots during the
same day, it checks the date in the file, finds the current date, and exits
without executing the batch file.
This program was written in TURBO PASCAL version 6.
Examples:
onetime
onetime Sunday
c:\util\onetime saturday c:\bat\runmenow.bat
onetime sunday c:\bat\delfile.bat text1.doc text2.doc
onetime Tuesday c:\dos\chkdsk.exe c: /f
This program is free. Send any questions or comments to me on
AmericaOnLine, or on Compuserve.
Compuserve User ID # 71610,703